﻿//======================================================================
//
//        Copyright : Zhengzhou Strawberry Computer Technology Co.,LTD.
//        All rights reserved
//        
//        Application:NFinal MVC framework
//        Filename :List.cs
//        Description :数据库表对象类
//
//        created by Lucas at  2015-6-30`
//     
//        WebSite:http://www.nfinal.com
//
//======================================================================
using System;
using System.Collections.Generic;
using System.Web;

namespace NFinal.DB
{
    public class List<T> : System.Collections.Generic.List<T>
    {
        /// <summary>
        /// 添加一个字段
        /// </summary>
        /// <param name="filedName">字段名</param>
        /// <param name="t">字段类型</param>
        public void AddNewField(string fieldName, Type t)
        {

        }
        public static bool operator true(List<T> list)
        {
            return true;
        }
        public static bool operator false(List<T> list)
        {
            return false;
        }
        /// <summary>
        /// 添加dynamic字段
        /// </summary>
        /// <param name="fieldName"></param>
        public void AddNewField(string fieldName)
        {

        }
        public string ToJson()
        {
            return string.Empty;
        }
        public void WriteJson(System.IO.TextWriter tw)
        {

        }
    }

}